import request from "@/utils/request";

export function listDictType(data) {
    return request({
        url: '/system/dict_type/list',
        method: 'get',
        params: data
    })
}

export function addDictType(data) {
    return request({
        url: '/system/dict_type/insert',
        method: 'post',
        data: data
    })
}

export function deleteDictType(dictId) {
    return request({
        url: '/system/dict_type/delete/' + dictId,
        method: 'delete'
    })
}

export function getDictType(dictId) {
    return request({
        url: '/system/dict_type/' + dictId,
        method: 'get'
    })
}

export function updateDictType(data) {
    return request({
        url: '/system/dict_type/update',
        method: 'put',
        data: data
    })
}
